/***************************************************************************
 *   Copyright (C) 2009 by Bernhard Neuhofer   *
 *   mail@bneu.at   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef CUSTOMERSOURCE_H
#define CUSTOMERSOURCE_H

#include "AbstractLp.h"
#include "source.h"
#include <cstdlib>
#include "interpreter.h"
/**
*@brief CustomerSource is a model entity which gerates customers.
*/
class CustomerSource:public Source
{
private:
/* Minimum time between customers */
static const double MIN_GAP=1.0;

/* Time between customers, lambda for neg. exp. distribtion*/
static const double NEGEXP_DIST_LAMBDA=5.0;

public:

/**
 * Constructor for CustomerSource
 * @param assocLp 
 * @param neighbors 
 */
CustomerSource(AbstractLp* assocLp,vector<unsigned int> neighbors)
:Source(assocLp,neighbors ){}

/**
 * @see Source#generate
 */
void generate();

};


#endif